package ${ftl.packageName}.${cgH.moduleName};

import lombok.Data;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
<#if "${cgH.isTree =='1'}">
import java.util.ArrayList;
import java.util.List;
</#if>
import io.swagger.annotations.ApiModelProperty;
<#if "${cgH.isCreateAppOrg}" =="1">
import com.stars.common.base.dto.BaseDto;
<#elseif "${cgH.isCreateAppOrg}" =="2">
import com.stars.common.base.dto.BaseCompanyDto;
<#elseif "${cgH.isCreateAppOrg}" =="3">
import com.stars.common.base.dto.BaseOrgDto;
<#elseif "${cgH.isCreateAppOrg}" =="4">
import com.stars.common.base.dto.BaseAppDto;
<#else >
import com.stars.common.base.BaseUUID;
</#if>
/**
 * @Title: ${tc.tableComment}实体
 * @author dj
 * @date ${tc.createTime}
 * @version V1.0
 *
 */
@Data
public class ${tc.entityName}${tc.entityPostfix} extends <#if "${cgH.isCreateAppOrg}" =="1">BaseDto<#elseif "${cgH.isCreateAppOrg}" =="2">BaseCompanyDto<#elseif "${cgH.isCreateAppOrg}" =="3">BaseOrgDto<#elseif "${cgH.isCreateAppOrg}" =="4">BaseAppDto<#else>BaseUUID</#if>{
<#list tc.templateFieldConfigList as po>
  <#if "${po.name}" !="id">
	/**${po.comment}*/
    <#if "${po.type}" =="Date">
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    </#if>
    @ApiModelProperty(value = "${po.comment}",name ="${po.fieldName}")
	private ${po.type} ${po.fieldName};
  </#if>
</#list>
<#if "${cgH.isTree =='1'}">
    private boolean expanded;
    private boolean leaf;
    //空参数查询标记
    private Boolean nullFlagQuery =false;
    private List<${tc.entityName}${tc.entityPostfix}> children = new ArrayList<>();
</#if>


}